package com.epalmpay.service.datareport.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.epalmpay.dto.datareport.MemberDataReportInDTO;
import com.epalmpay.entity.Member;
import com.epalmpay.entity.StatisAgentDay;
import com.epalmpay.entity.StatisAgentMonth;
import com.epalmpay.entity.StatisGroupDay;
import com.epalmpay.entity.StatisGroupMonth;
import com.epalmpay.entity.StatisMemberDay;
import com.epalmpay.entity.StatisMemberMonth;
import com.epalmpay.entity.StatisShopDay;
import com.epalmpay.entity.StatisShopMonth;
import com.epalmpay.mapper.MemberMapper;
import com.epalmpay.mapper.StatisAgentDayMapper;
import com.epalmpay.mapper.StatisAgentMapper;
import com.epalmpay.mapper.StatisAgentMonthMapper;
import com.epalmpay.mapper.StatisGroupDayMapper;
import com.epalmpay.mapper.StatisGroupMonthMapper;
import com.epalmpay.mapper.StatisMemberDayMapper;
import com.epalmpay.mapper.StatisMemberMonthMapper;
import com.epalmpay.mapper.StatisShopDayMapper;
import com.epalmpay.mapper.StatisShopMonthMapper;
import com.epalmpay.service.datareport.IMemberDataReportService;

@Service("memberDataReportService")
public class MemberDataReportServiceImpl implements IMemberDataReportService{
	
	@Resource
	private MemberMapper memberMapper;
	
	@Resource
	private StatisAgentDayMapper statisAgentDayMapper;
	
	@Resource
	private StatisShopDayMapper statisShopDayMapper;
	
	@Resource
	private StatisAgentMonthMapper statisAgentMonthMapper;
	
	@Resource
	private StatisShopMonthMapper statisShopMonthMapper;

	@Resource
	private StatisAgentMapper statisAgentMapper;
	
	@Resource
	private StatisMemberDayMapper statisMemberDayMapper;
	@Resource
	private StatisMemberMonthMapper statisMemberMonthMapper;
	@Resource
	private StatisGroupDayMapper statisGroupDayMapper;
	@Resource
	private StatisGroupMonthMapper statisGroupMonthMapper;
	
	
	
	
	
	//渠道后台
	@Override
	public int queryMemberCount(MemberDataReportInDTO memberDataReportInDTO)throws Exception {
		return memberMapper.queryMemberCount(memberDataReportInDTO);
	}

	
	
	@Override
	public StatisAgentDay queryStatisAgentDayCount(MemberDataReportInDTO memberDataReportInDTO)throws Exception {
		return statisAgentDayMapper.queryStatisAgentDayCount(memberDataReportInDTO);
	}

	@Override
	public StatisShopDay queryStatisShopDayCount(MemberDataReportInDTO memberDataReportInDTO)throws Exception {
		return statisShopDayMapper.queryStatisShopDayCount(memberDataReportInDTO);
	}
	

	@Override
	public StatisMemberDay queryStatisMemberDayCount(MemberDataReportInDTO memberDataReportInDTO) throws Exception {
		return statisMemberDayMapper.queryStatisMemberDayCount(memberDataReportInDTO);
	}

	@Override
	public StatisAgentMonth queryStatisAgentMonthCount(MemberDataReportInDTO memberDataReportInDTO)throws Exception {
		return statisAgentMonthMapper.queryStatisAgentMonthCount(memberDataReportInDTO);
	}

	@Override
	public StatisShopMonth queryStatisShopMonthCount(MemberDataReportInDTO memberDataReportInDTO) throws Exception{
		return statisShopMonthMapper.queryStatisShopMonthCount(memberDataReportInDTO);
	}
	
	
	@Override
	public StatisMemberMonth queryStatisMemberMonthCount(MemberDataReportInDTO memberDataReportInDTO) throws Exception {
		return statisMemberMonthMapper.queryStatisMemberMonthCount(memberDataReportInDTO);
	}


	@Override
	public StatisGroupDay queryStatisGroupDayCount(MemberDataReportInDTO memberDataReportInDTO) throws Exception {
		return statisGroupDayMapper.queryStatisGroupDayCount(memberDataReportInDTO);
	}



	@Override
	public StatisGroupMonth queryStatisGroupMonthCount(MemberDataReportInDTO memberDataReportInDTO) throws Exception {
		return statisGroupMonthMapper.queryStatisGroupMonthCount(memberDataReportInDTO);
	}

	
	
	//代理商后台
	@Override
	public int queryMemberCountAgent() {
		return statisAgentMapper.queryMemberCountAgent();
	}
	
	@Override
	public StatisAgentDay queryStatisAgentDayCountAgent(MemberDataReportInDTO memberDataReportInDTO) {
		return statisAgentDayMapper.queryStatisAgentDayCountAgent(memberDataReportInDTO);
	}
	
	@Override
	public StatisShopDay queryStatisShopDayCountShop(MemberDataReportInDTO memberDataReportInDTO) {
		return statisShopDayMapper.queryStatisShopDayCountShop(memberDataReportInDTO);
	}
	
	@Override
	public StatisAgentMonth queryStatisAgentMonthCountAgent(MemberDataReportInDTO memberDataReportInDTO) {
		return statisAgentMonthMapper.queryStatisAgentMonthCountAgent(memberDataReportInDTO);
	}
	
	@Override
	public StatisShopMonth queryStatisShopMonthCountShop(MemberDataReportInDTO memberDataReportInDTO) {
		return statisShopMonthMapper.queryStatisShopMonthCountShop(memberDataReportInDTO);
	}



	


	

}



